/**
 * Created by huotaol on 2017/5/3.
 */
import * as types from "../../constant/ActionType";
import store from "../store/configStore";


export function buyCarFilter(param) {
    const {buyCarFilter} = store.getState();
    const newParam = Object.assign({}, buyCarFilter, param);
    return {
        type: types.BUY_CAR_FILTER,
        ...newParam,
    };
}

export function requestBrand() {
    return {
        type: types.BRAND_FETCH,
    }
}

export function receiveBrand(data) {
    return {
        type: types.BRAND_RECEIVE,
        data,
    };
}

export function requestSeries(brand) {
    return {
        type: types.SERIES_REQUEST,
        brand,
    };
}
export function receiveSeries(data) {
    return {
        type: types.SERIES_RECEIVE,
        data,
    };
}


